package cts;

import java.util.Vector;

public class test {

	public static void main(String args[])
	{
		Vector<Switch> v1,v2;
		v1=new Vector<Switch>();
		v2=new Vector<Switch>();
		Switch sw=new Switch();
		sw.value=23;
		sw.sw=true;
		v1.add(sw);
		v2.add(v1.get(0));
		sw.sw=false;
		System.out.println(v1+"\n"+v2);
	}
	
	public static class Switch
	{
		public int value;
		public boolean sw;
		public String toString()
		{
			return "{"+value+" "+sw+"}";
		}
	
	}
}
